package com.frame.common.core.entity;


import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.frame.common.core.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;


/**
 * 字典类型表 sys_dict_type
 *
 * @author ruoyi
 */
@ApiModel("字典类型")
@Data
@Accessors(chain = true)
public class SysDictType extends BaseEntity {

    /**
     * 字典主键
     */
    @TableId
    @ApiModelProperty(name = "字典主键")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long dictId;

    /**
     * 字典名称
     */
    @ApiModelProperty(name = "字典名称")
    private String dictName;

    /**
     * 字典类型
     */
    @ApiModelProperty(name = "字典类型")
    private String dictType;

    /**
     * 状态（0正常 1停用）
     */
    @ApiModelProperty(name = "状态,0=正常,1=停用")
    private String status;


//    @NotBlank(message = "字典名称不能为空")
//    @Size(min = 0, max = 100, message = "字典类型名称长度不能超过100个字符")
//    public String getDictName() {
//        return dictName;
//    }
//
//
//    @NotBlank(message = "字典类型不能为空")
//    @Size(min = 0, max = 100, message = "字典类型类型长度不能超过100个字符")
//    public String getDictType() {
//        return dictType;
//    }

}
